<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script>
			function onBack(num) {
				alert("姗姗我来迟了");
				// 执行num个耳光 
			}

			function dating(hours, callBack) {
				var SP = 0; // SP,愤怒值 
				//女猪脚在雪里站了hours个钟头 
				//循环开始.. 
				SP++;
				//循环结束... 
				callBack(SP);
			}
			dating(1, onBack);
		</script>
	</body>

</html>